package com.example.human_resource_management.service;

import com.example.human_resource_management.entry.dto.EmployeeDto;
import com.example.human_resource_management.entry.dto.PageDto;
import com.example.human_resource_management.entry.dto.PagesDto;
import com.example.human_resource_management.entry.po.Employee;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【employee(员工表)】的数据库操作Service
* @createDate 2025-06-09 08:48:41
*/
public interface EmployeeService extends IService<Employee> {
    Employee getEmployeeById(Long empId);
    EmployeeDto getEmployeeDetails(Long empId);
    boolean updateEmployeeFields(Long empId, String name, String gender, String contact);

    PageDto get(Long empId);

    PagesDto getpage(Long empId);

// 管理员端的操作
List<EmployeeDto> selectAllEmployeeDetails();
    boolean insertEmployee(Employee employee);
    boolean updateEmployee(Employee employee);
    boolean deleteEmployee(Long empId);
}
